package shiye;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘国水
 * Date: 2025-03-30
 * Time: 10:30
 */
//饿汉式
public class Singleton {
   private static Singleton singleton = new Singleton();

   private Singleton() {

   }
   public static Singleton getSingleton() {
       return singleton;
   }

}
